<template>
<div>
   <h1>第一题</h1>
   <h2>{{name}}</h2>
</div>
  
</template>

<script>
export default {
    data(){
        return {
            arr:["小花", "小明", "小可爱", "小王"]
        }
    },
    computed: {
        name(){
            let i=Math.floor(Math.random()*this.arr.length)
            return this.arr[i]
        }
    }
}
</script>

<style>

</style>